package com.muyi.biling;

import android.app.Application;

import javax.inject.Singleton;

import autodagger.AutoComponent;
import com.muyi.biling.di.AppModule;
import com.muyi.biling.di.Injector;
import com.muyi.biling.util.Utils;

/**
 * Created by developer on 18-1-24.
 */

@AutoComponent(modules = AppModule.class)
@Singleton
public class MyApp extends Application {

    public boolean mPadDevice = true;

    @Override
    public void onCreate() {
        super.onCreate();
        Injector.initMyAppComponent(this);
        mPadDevice = Utils.isPad(this);
    }
}
